import request from '@/utils/request'

export default {
  //生成订单
  createOrders(contentId) {
    return request({
      url: '/services_pay/pay-order/createOrder/'+contentId,
      method: 'post'
    })
  },

  //根据订单id查询订单信息
  getOrdersInfo(orderId) {
    return request({
      url: '/services_pay/pay-order/getOrderInfo/'+orderId,
      method: 'get'
    })
  },

  //支付接口
  aliPay(orderNo){
    return request({
      url: '/services_pay/pay-log/aliPay/'+orderNo,
      method: 'get'
    })
  }
}
